package com.jyxd.web.data.czhisdata;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 操作人员登记实体
 */
@Entity
@Table(name = "table_operator")
@Data
@ApiModel("操作人员登记实体")
public class Operator implements Serializable {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;


    /**
     * 操作者工号
     */
    @ApiModelProperty("操作者工号")
    @Column(name = "handle_id_number")
    private String handleIdNumber;


    /**
     * 操作者名字
     */
    @ApiModelProperty("操作者名字")
    @Column(name = "handle_name")
    private String handleName;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "operation_time")
    private Date operationTime;

    /**
     * 业务类型code
     */
    @ApiModelProperty("业务类型code")
    @Column(name = "type_code")
    private String typeCode;

    /**
     * 业务类型名称
     */
    @ApiModelProperty("业务类型名称")
    @Column(name = "type_name")
    private String typeName;

    /**
     * 主业务类型
     */
    @ApiModelProperty("主业务类型")
    @Column(name = "big_type")
    private String bigType;


    /**
     * 执行科室代码
     */
    @ApiModelProperty("执行科室代码")
    @Column(name = "department_code")
    private String departmentCode;

    /**
     * 执行科室名称
     */
    @ApiModelProperty("执行科室名称")
    @Column(name = "department_name")
    private String departmentName;

    /**
     * 执行病区代码
     */
    @ApiModelProperty("执行病区代码")
    @Column(name = "ward_code")
    private String wardCode;

    /**
     * 执行病区名称
     */
    @ApiModelProperty("执行病区名称")
    @Column(name = "ward_name")
    private String wardName;


    /**
     * 关联表主键id
     */
    @ApiModelProperty("关联表主键id")
    @Column(name = "re_table_id")
    private String reTableId;

    @ApiModelProperty("创建时间")
    @Column(name = "create_time")
    private Date createTime;

}
